<!DOCTYPE html>
<html class="hb-loaded">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="renderer" content="webkit">
		<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
		<title>岛里巴巴</title>
		<script src="/static/js/jquery.min.js"></script>

		<!--<script src="/static/js/lodash.min.js"></script>-->
		<script type="text/javascript" src="/ueditor/ueditor.config.js"></script>
		<!-- 编辑器源码文件 -->
		<script type="text/javascript" src="/ueditor/ueditor.all.js"></script>
		<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
		<link rel="stylesheet" type="text/css" href="/static/seller/style.css">
		<link rel="stylesheet" type="text/css" href="/static/seller/seller.css">

		<!--<script type="text/javascript" src="/static/seller/layer/layer.js"></script>-->

		<!--<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">-->
		<!--<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.16/css/dataTables.bootstrap.min.css">-->

	</head>

	<body class="zh_CN page_base " huaban_collector_injected="true" style="">
		<div class="mp-head" id="header">
			<script type="text/javascript">
				window._points && (window._points[1] = +new Date());
			</script>
			<div id="mp_header" class="head">
				<div class="head__inner">
					<div class="layout">
						<div class="layout__side">
							<h1 class="logo"><a href="https://mp.weixin.qq.com/" title=""></a></h1></div>
						<div id="mp_header_account" class="layout__extra" style="visibility: visible;">
							<div class="account">
								<a href="#" class="btn__head-opr account__message"></a>
								<div class="operation-group account__opr operation-group_hover operation_default">
									<span class="operation-group_default">
										<div class="account__info">
											<a href="#" class="account__nickname weui-desktop__small-screen-hide">{$co_name}</a>
										</div>
									</span>
									<!---->
									<!---->
								</div>
								<div class="operation-group account__opr operation-group_hover operation_default">
									<span class="operation-group_default">
										<div class="account__info">
											<a href="/user/logout" style="color: #1AAD19" class="account__nickname weui-desktop__small-screen-hide">退出</a>
										</div>
									</span>
									<!---->
									<!---->
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div id="body" class="mp-body" style="min-height: 1000px;">
			<div id="js_container_box" class="layout layout_global">
				<a id="m_open" href="javascript:;" class="btn__head-opr weui-desktop__unfold-menu-opr">展开</a>
				<div id="js_mp_sidemenu" class="layout__side">


					<ul class="menu menu_global" id="menuBar">

						<li class="menu__item menu_home">
							<a title="首页" class="menu__link" href="#"> <span class="menu__link__inner">                        <span class="menu__name">首页</span> </span>
							</a>
							<ul class="sub-menu"> </ul>
						</li>

						{volist name="menu" id="x" key="k"}

							<li class="menu__item">
								<span class="menu__link" title="{$x.name}">
									<span class="menu__link__inner">
										<span class="menu__name">{$x.name}</span>
									</span>
								</span>
								<ul class="sub-menu">
								{volist name="x.item" id ="y"}

										<li class="sub-menu__item">
											<a title="{$y.name}" class="menu__link " data-id="10006" href="{$y.url}">
												<span class="menu__link__inner">
													<span class="menu__name">{$y.name}</span>
												</span>
											</a>
										</li>

								{/volist}
								</ul>
							</li>

						{/volist}
					</ul>
				</div>
				<div id="js_mp_main_content" class="layout__main">
					<div class="layout__main__area">
						<div class="layout__main__inner">

							<div id="app">
								{__CONTENT__}
							</div>

						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="mp-foot" id="footer" chromeappversion="2.0.1">
			<div class="foot">
				<div class="foot__info">
					<p class="links link-group link-group_split">
						<a class="link" href="#" target="_blank">关于我们</a>
						<a class="link" href="#" target="_blank">服务协议</a>
						<a class="link" href="" target="_blank">常见问题</a>
						<a class="link" href="" target="_blank">在线客服</a>
						<a class="link" href="mailto:xxxx@qq.com" target="_blank">联系邮箱</a>
						<span class="link">官方公众号 daolibaba</span> </p>
				</div>
				<div class="foot__extra">
					<p class="link">Copyright © 2017-2018 Daolibaba. All Rights Reserved.</p>
				</div>
			</div>
		</div>
		<script>
            window.onload = function () {

                var menuList = document.querySelectorAll('.menu__link');
                var index = Number(sessionStorage.getItem('js-active-menu'));

                if (index > -1 && index < menuList.length) {
                    console.log(index);
                    menuList[index].className += ' menu__link_current'
                }

                for (var i = 0; i < menuList.length; i++) {

                    menuList[i].addEventListener("click", function (k) {

                        return function () {

                            sessionStorage.setItem('js-active-menu', k);
                            document.querySelector('.menu__link_current').className = document.querySelector('.menu__link_current').className.replace(/menu__link_current/, '');
                            this.className += ' menu__link_current';
                            console.log(sessionStorage)
                        }
                    }(i))

                }

            }

		</script>
		<script src="/static/js/plugins/layer/layer.min.js"></script>
		<script src="/static/js/plugins/layer/laydate/laydate.js"></script>
		<script src="//cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
	</body>
</html>